package com.software.course.dao;

import com.software.course.enity.Course;
import com.software.course.enity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdminDao {
    public List<User> listStu();

    public int deleteStuById(Integer id);

    public int updateStu(User user);

    public int addStu(User user);

    public User queryStuById(Integer id);

    public int queryStuByAccount(String account);

    public List<User> lisTeacher();

    public List<Course> listCourse();

    public int deleteCourseById(Integer id);

    public int updateCourse(Course course);

    public int addCourse(Course course);

    public Course queryCourseById(Integer id);






}
